﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing.Imaging;
using System.Drawing;

namespace Smith.ImageConverter
{
    public class PNGConvert : BaseConvert, IConvert
    {
        public PNGConvert()
        {
            CodeInfo = GetImageCodeInfo("image/png");
            Parameters = new EncoderParameters();
        }

        public override void Save(Bitmap image, string path)
        {
            image.Save(path, ImageFormat.Png);
        }
    }
}
